<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::get('api/index', [\App\Http\Controllers\Api\IndexController::class, 'index']);
Route::get('api/article/{category_id}/list', [\App\Http\Controllers\Api\ArticleController::class, 'getArticleByCategoryId']);
Route::get('api/article/{id}/detail', [\App\Http\Controllers\Api\ArticleController::class, 'getArticle']);
Route::post('api/appointment/create', [\App\Http\Controllers\Api\AppointmentController::class, 'createAppointment']);
Route::get('api/config/{id}/detail', [\App\Http\Controllers\Api\ConfigController::class, 'getConfig']);
Route::get('api/specialists', [\App\Http\Controllers\Api\SpecialistController::class, 'getSpecialists']);
Route::get('api/specialist/{id}/detail', [\App\Http\Controllers\Api\SpecialistController::class, 'getSpecialist']);
